<!DOCTYPE html>
<html lang="en" style="width:100%;height:100%;overflow:hidden;margin:0;font-family:'微软雅黑'">
<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=i3pHoSqFDLVF6U26rgYBzIO6f5eq82R3"></script>
    <title>地址定位</title>
</head>

<body style="width:100%;height:100%;overflow:hidden;margin:0;font-family:'微软雅黑'">
    <div id="map" style="width:100%;height:100%;overflow:hidden;margin:0;font-family:'微软雅黑'"></div>
</body>
</html>

<script type="text/javascript">
    var address= window.sessionStorage.getItem('address');
    var map = new BMap.Map("map");
    var point = new BMap.Point(116.331398,39.897445);
    map.centerAndZoom(point,12);
    map.addControl(new BMap.NavigationControl());

    //使用LocalSearch
    var options = {renderOptions:{map:map,panel:"results"}};
    var localsearch = new BMap.LocalSearch(map,options);
    localsearch.search(address);

</script>